<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center examines_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub examines_fd0_0'>
					<view class='flex flex-wrap align-center examines_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  examines_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='examines_fd0_0_c1_c0'>审核</text>
					</view>
					<view class='flex flex-wrap align-center justify-end examines_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---注销账号提交成功flex布局开始-->
			<view class="flex flex-direction flex-wrap align-center benben-flex-layout examines_flex_1"
				v-if="examineData.status=='1'">
				<image class='examines_fd1_0' mode="aspectFit" :src='STATIC_URL+"386.png"'></image>
				<text class='examines_fd1_1'>您的入驻申请已提交成功</text>
				<text class='examines_fd1_2'>  您的申请已提交
					3-7个工作日为您反馈审核结果</text>
				<button class='examines_fd1_3' @tap.stop="handleJumpDiy" data-type="switchTab"
					:data-url="`/pages/tabBar/myss/myss`">返回我的</button>
			</view>

			<!---注销账号提交成功flex布局结束-->
			<!---审核成功flex布局开始-->
			<view class="flex flex-direction flex-wrap align-center benben-flex-layout examines_flex_2"
				v-if="examineData.status=='2'">
				<image class='examines_fd2_0' mode="aspectFit" :src='STATIC_URL+"387.png"'></image>
				<text class='examines_fd2_1'>您的入驻申请审核成功</text>
				<button class='examines_fd2_2' @tap.stop="handleJumpDiy" data-type="switchTab"
					:data-url="`/pages/tabBar/myss/myss`">返回我的</button>
			</view>

			<!---审核成功flex布局结束-->
			<!---审核失败flex布局开始-->
			<view class="flex flex-direction flex-wrap align-center benben-flex-layout examines_flex_3"
				v-if=" examineData.status=='3'">
				<image class='examines_fd3_0' mode="aspectFit" :src='STATIC_URL+"201.png"'></image>
				<text class='examines_fd3_1'>您的入驻申请审核失败</text>
				<view class='examines_fd3_2'>
					<text class='examines_fd3_2_c0'>失败原因：</text>
					<text class='examines_fd3_2_c0'>{{examineData.reason}}</text>
				</view>
				<button class='examines_fd3_3' @tap.stop="handleJumpDiy" data-type="redirectTo"
					:data-url="`/pages/my/improveDataes/improveDataes?type=0`">重新提交</button>
			</view>

			<!---审核失败flex布局结束-->


		</view>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				"examineData": {
					"aid": "",
					"idcard_no": "",
					"name": "",
					"idcard_emblem": "",
					"idcard_portrait": "",
					"idcard_time": "",
					"reason": "",
					"status": "",
					"phone": "",
					"skill": "",
					"sex": "",
					"address": "",
					"credentials": "",
					"avatar": "",
					"type_name": "",
					"mature_time": "",
					"aptitude_start_time": "",
					"certificatetype_id": "",
					"fid": "",
					"hand_card": "",
					"standby_phone": "",
					"detail_address": "",
					"service_area": "",
					"category_name": ""
				}
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},
			userInfo: {
				get() {
					return this.$store.state.userInfo
				},
				set() {
					this.$store.commit('updateUserInfo', value)
				},
			}
		},
		watch: {},
		onLoad(options) {
			this.getStatusFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取审核状态
			async getStatusFunc() {
				//请求方法
				//数据验证

				let dataexamineData = await this.$api.get(global.apiUrls.post637c7e1d7d61e, {
					user_id: this.userInfo.id
				});

				if (dataexamineData.data.code != 1) {
					this.$message.info(dataexamineData.data.msg);
					return
				}
				let infoexamineData = dataexamineData.data;
				this.examineData = infoexamineData.data

			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto;
	}

	.examines_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.examines_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
		line-height: 88rpx;
	}

	.examines_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
	}

	.examines_fd0_0_c0 {
		width: 120rpx;
		height: 88rpx;
	}

	.examines_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.examines_flex_1 {
		padding: 193rpx 39rpx 0rpx 39rpx;
	}

	.examines_fd1_3 {
		border: 1px solid #BFBFBF;
		background: #FFFFFF;
		border-radius: 36rpx 36rpx 36rpx 36rpx;
		font-size: 28rpx;
		color: rgba(102, 102, 102, 1);
		width: 320rpx;
		height: 72rpx;
		line-height: 72rpx;
	}

	.examines_fd1_2 {
		line-height: 43rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: #666666;
		text-align: center;
		margin: 0rpx 0rpx 110rpx 0rpx;
	}

	.examines_fd1_1 {
		line-height: 45rpx;
		font-size: 32rpx;
		font-weight: 700;
		color: #000000;
		margin: 0rpx 0rpx 32rpx 0rpx;
	}

	.examines_fd1_0 {
		width: 240rpx;
		height: 240rpx;
		margin: 0rpx 0rpx 30rpx 0rpx;
	}

	.examines_flex_2 {
		padding: 193rpx 39rpx 0rpx 39rpx;
	}

	.examines_fd2_2 {
		border: 1px solid #BFBFBF;
		background: #FFFFFF;
		border-radius: 36rpx 36rpx 36rpx 36rpx;
		font-size: 28rpx;
		color: rgba(102, 102, 102, 1);
		width: 320rpx;
		height: 72rpx;
		line-height: 72rpx;
	}

	.examines_fd2_1 {
		line-height: 45rpx;
		font-size: 32rpx;
		font-weight: 700;
		color: #000000;
		margin: 0rpx 0rpx 120rpx 0rpx;
		text-align: center;
	}

	.examines_fd2_0 {
		width: 240rpx;
		height: 240rpx;
		margin: 0rpx 0rpx 30rpx 0rpx;
	}

	.examines_flex_3 {
		padding: 193rpx 0rpx 0rpx 0rpx;
	}

	.examines_fd3_3 {
		border: 1px solid #BFBFBF;
		background: #FFFFFF;
		border-radius: 36rpx 36rpx 36rpx 36rpx;
		font-size: 28rpx;
		color: rgba(102, 102, 102, 1);
		width: 320rpx;
		height: 72rpx;
		line-height: 72rpx;
	}

	.examines_fd3_2_c0 {
		font-size: 28rpx;
		font-weight: 400;
		color: #333;
		line-height: 40rpx;
	}

	.examines_fd3_2 {
		margin: 0rpx 40rpx 110rpx 40rpx;
	}

	.examines_fd3_1 {
		line-height: 45rpx;
		font-size: 32rpx;
		font-weight: 700;
		color: #000000;
		margin: 0rpx 0rpx 50rpx 0rpx;
	}

	.examines_fd3_0 {
		width: 240rpx;
		height: 240rpx;
		margin: 0rpx 0rpx 30rpx 0rpx;
	}
</style>